package com.efuture.chapterthree

/* @Description: 使用if来判断null 跟java一样
 * @Auther: zhaoshanshan
 * @Date: 2022/03/04/10:52 下午
 */
fun main() {
    var name:String? = null
    name = "zhaoshanshan";
    //name = null;
    if(null!=name){
        println(name);
    }else{
        println("name为空");
    }
}
    